<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>市场摊位治理平台</title>
  <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">摊位治理平台</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="javascript:;"  onclick="change('market')">市场管理</a></li>
      <li class="layui-nav-item"><a href="javascript:;"  onclick="change('manager')">管理员信息</a></li>
      <li class="layui-nav-item"><a href="javascript:;"  onclick="change('goods')">商品类型</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">相关公告</a>
        <dl class="layui-nav-child">
          <dd><a href="">系统公告</a></dd>
          <dd><a href="">市场公告</a></dd>
        </dl>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
         张三
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">修改密码</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退出</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">

        <li class="layui-nav-item">
          <a href="javascript:;" onclick="change('booth')" >摊位信息</a>
<!--          <dl class="layui-nav-child">-->
<!--            <dd><a href="javascript:;">列表一</a></dd>-->
<!--            <dd><a href="javascript:;">列表二</a></dd>-->
<!--            <dd><a href="">超链接</a></dd>-->
<!--          </dl>-->
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">用户信息</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="change('table')">&nbsp;&nbsp;&nbsp;全部用户</a></dd>
            <dd><a href="javascript:;" onclick="change('table')">&nbsp;&nbsp;&nbsp;违规用户</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="javascript:;"  onclick="change('order')">订单管理</a></li>
        <li class="layui-nav-item"><a href="javascript:;"  onclick="change('marketNotice')">通知变动</a></li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <iframe src="boothsInfo.html" id="demoAdmin" style="width: 100%; height: 100%;" frameborder="0"></iframe>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © layui.com - 底部固定区域
  </div>
</div>





<!-- <script src="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.5/layui.js"></script>
 -->

<script src="../layui/layui.js"></script>
<script src="../js/jquery.min.js" charset="utf-8"></script>
 <script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  
});

function change(menu) {
// alert(menu);
  let url = '';
  switch (menu) {
    case 'table':
      url = "table.html";
      break;
    case 'booth':
      url = "boothsInfo.html";
      break;
    case 'order':
      url = "myTest.html";
      break;
    case 'marketNotice':
      url = "theMarketInfo.html";
      break;
    case 'market':
      url = "marketsInfo.html";
      break;
    case 'manager':
      url = "managerInfo.html";
      break;
    case 'goods':
      url = "goodsInfo.html";
      break;
  }

  $('iframe').attr('src',url)
}

</script>
</body>
</html>